home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / human interface toolbox / live scroll / barebones.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.3 KB  |  73 lines

  1. /*
  2.     File:        BareBones.c
  3.  
  4.     Contains:    The main routine
  5.  
  6.     Written by: Chris White    
  7.  
  8.     Copyright:    Copyright © 1996-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/6/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. #pragma segment Core
  25.  
  26.  
  27. #define __MAIN__
  28.  
  29.  
  30.  
  31. // System includes
  32. #ifndef __MEMORY__
  33.     #include <Memory.h>
  34. #endif
  35.  
  36.  
  37.  
  38. // Application includes
  39. #ifndef __PROTOTYPES__
  40.     #include "Prototypes.h"
  41. #endif
  42.  
  43.  
  44.  
  45.  
  46.  
  47. #if !defined(THINK_C) && !defined(__MWERKS__)        // These declares "qd" in their runtime
  48.     QDGlobals    qd;
  49. #endif
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. void main ( void )
  57. {
  58.     MaxApplZone ( );
  59.     
  60.     // Do we use handles?
  61.     MoreMasters ( );
  62.     MoreMasters ( );
  63.     
  64.     InitToolbox ( );                        // Init toolbox stuff
  65.     InitApplication ( );                    // Init application specific stuff
  66.     EventLoop ( );
  67.     
  68.     return;
  69. }
  70.  
  71.  
  72.  
  73.